package shudu;

/**
 * @author 田野
 * @version 创建时间：2014年1月4日 上午11:04:27
 * 
 */
public class Main {
	
	private static String[][] value = {
		{"0","6","0","5","9","3","0","0","0"},
		{"9","0","9","0","0","0","5","0","0"},
		{"0","3","0","4","0","0","0","9","0"},
		{"1","0","8","0","2","0","0","0","4"},
		{"4","0","0","3","0","9","0","0","1"},
		{"2","0","0","0","1","0","6","0","9"},
		{"0","8","0","0","0","6","0","2","0"},
		{"0","0","4","0","0","0","8","0","7"},
		{"0","0","0","7","8","5","0","1","0"}
	};
	
	private static int[][] value1 = {
		{0,0,8,3,0,9,1,0,0},
		{9,0,0,0,6,0,0,0,4},
		{0,0,9,5,0,4,8,0,0},
		{0,3,6,0,0,0,5,4,0},
		{0,0,1,0,0,0,6,0,0},
		{0,4,2,0,0,0,9,7,0},
		{0,0,5,9,0,7,3,0,0},
		{6,0,0,0,1,0,0,0,8},
		{0,0,4,6,0,8,2,0,0}
	};
	//([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])
	//$1,$2,$3,$4,$5,$6,$7,$8,$9
	private static int[][] value3 = { 
		{1,0,7,0,0,3,0,8,0},
		{0,5,6,0,9,0,0,0,7},
		{3,8,9,0,7,0,2,0,5},
		{0,0,2,3,6,7,5,9,0},
		{0,7,0,9,8,2,4,0,6},
		{9,0,8,0,0,1,7,2,3},
		{6,0,4,7,1,0,0,0,2},
		{7,2,5,4,3,9,8,6,1},
		{0,0,0,6,0,0,3,7,4}
	};
	
	public static void main(String[] args) {
		
		Chessboard chessboard = new Chessboard(value1);
		
		Genius genius = new Genius();
		genius.guess(chessboard);
	}
}
